package com.earl.gsm.domain.gsm.place;

import com.earl.gsm.commons.domain.AbstractAuditingEntity;
import com.fasterxml.jackson.annotation.JsonInclude;

import javax.persistence.Table;
import java.io.Serializable;

/**
 * 汽车信息实体类.
 * Created by Administrator on 2016/4/4.
 */
@JsonInclude(JsonInclude.Include.NON_NULL)
@Table(name = "placeorder")
public class PlaceOrder extends AbstractAuditingEntity<Long> implements Serializable {

	public final static int PAY = 2;
	
	public final static int OUTOFDAY =1;
	
	public final static int UNPAY = 0;
	
    private Long userId;//用户id
    
    private Long placeId;
    
    private Integer state;
    
    private String beginTime;
    
    private Long beginMillis;
    
    private String endTime;
    
    private Long endMillis;
    
    private Double price;
    
    private Double total;
    
    private Boolean outOfDate;
    
	public Boolean getOutOfDate() {
		return outOfDate;
	}

	public void setOutOfDate(Boolean outOfDate) {
		this.outOfDate = outOfDate;
	}

	public Integer getState() {
		return state;
	}

	public void setState(Integer state) {
		this.state = state;
	}

	public Long getPlaceId() {
		return placeId;
	}

	public void setPlaceId(Long placeId) {
		this.placeId = placeId;
	}

	public Long getUserId() {
		return userId;
	}

	public void setUserId(Long userId) {
		this.userId = userId;
	}

	public String getBeginTime() {
		return beginTime;
	}

	public void setBeginTime(String beginTime) {
		this.beginTime = beginTime;
	}

	public Long getBeginMillis() {
		return beginMillis;
	}

	public void setBeginMillis(Long beginMillis) {
		this.beginMillis = beginMillis;
	}

	public String getEndTime() {
		return endTime;
	}

	public void setEndTime(String endTime) {
		this.endTime = endTime;
	}

	public Long getEndMillis() {
		return endMillis;
	}

	public void setEndMillis(Long endMillis) {
		this.endMillis = endMillis;
	}

	public Double getPrice() {
		return price;
	}

	public void setPrice(Double price) {
		this.price = price;
	}

	public Double getTotal() {
		return total;
	}

	public void setTotal(Double total) {
		this.total = total;
	}

	@Override
	public String toString() {
		return "PlaceOrder [userId=" + userId + ", beginTime=" + beginTime + ", beginMillis=" + beginMillis
				+ ", endTime=" + endTime + ", endMillis=" + endMillis + ", price=" + price + ", total=" + total + "]";
	}
   
}
